package com.gxc.mq.consumer;

import com.gxc.config.QueueConfigBean;
import com.gxc.entity.User;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author GongXincheng
 * @since 2019-09-03 13:46
 */
@Component
public class TestTopicConsumer {


    @RabbitListener(queues = QueueConfigBean.TOPIC_QUEUE_1)
    public void receive(User user) {
        System.out.println(user);
    }

}
